<template>
	<view class="content">
		<image src="../../static/images/index/yuyue.png" mode="" class="banner-image"></image>
		<form action="" class="yuyue-list">
			<view class="all-use">
				楼盘名称 <input type="text" name="" placeholder="融圣国际" class="all-use-inputstyle">
			</view>
			<view class="all-use">
				预约类型
				<input type="text" name="yuyue-type-inputstyle" placeholder="" class="all-use-inputstyle">
				<picker @change="yuyuechange" :value="index" :range="array" range-key="name">
					<view class="yuyue-type-inputstyle"></view>
				</picker>
			</view>
			<view class="all-use">
				户&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;型
				<input type="text" name="" placeholder="150" class="housetype all-use-inputstyle">
			</view>
			<view class="all-use">
				姓&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;名
				<input type="text" name="" placeholder="刘芳" class="all-use-inputstyle">
			</view>
			<view class="all-use">
				联系方式 <input type="text" name="" placeholder="13546713187" class="all-use-inputstyle">
			</view>
			<view class="all-use">
				微信号码 <input type="text" name="" placeholder="15987523524" class="all-use-inputstyle">
			</view>
			<button class="yuyue-button">确定预约</button>
		</form>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				array: [{
					name: '验房'
				}, {
					name: '微改报价'
				}, {
					name: '设计'
				}, {
					name: '拎包入住'
				}],
				index: 2,
			};
		},
		methods: {
			yuyuechange: function(e) {
				this.index = e.detail.value;
			}
		}
	}
</script>

<style>
	* {
		margin: 0;
		padding: 0;
	}

	.content {
		width: 100%;
		height: 100vh;
		box-sizing: border-box;
	}

	.yuyue-list {
		display: flex;
		justify-content: center;
		position: relative;
		height: 315px;
	}

	.banner-image {
		width: 100%;
	}

	.all-use {
		display: flex;
		flex-direction: row;
		height: 24px;
		font-size: 14px;
		font-family: "PingFang SC", "PingFang SC-Medium";
		color: #000;
		line-height: 24px;
		margin-top: 20px;
	}

	.all-use-inputstyle {
		font-size: 14px;
		padding-left: 10px;
		margin-left: 20px;
		width: 243px;
		height: 24px;
		background: #ffffff;
		font-weight: bold;
		border: 1px solid rgba(0, 0, 0, 0.10);
		border-radius: 4px;
	}

	.yuyue-button {
		width: 164px;
		height: 40px;
		line-height: 40px;
		background: #3d9c36;
		color: #fff;
		border-radius: 4px;
		position: absolute;
		margin-top: 8%;
		transform: translate(50%);
	}

	.yuyue-type-inputstyle::after {
		content: url('../../static/images/icon/right_icon.png');
		position: absolute;
		border: dashed 1px #000;
		width: 18px;
		height: 18px;
		right: 5px;
		transform: translateY(15%);
		opacity: .5;
	}

	.housetype::after {
		content: "(㎡)";
		position: absolute;
		right: 30px;
		transform: translateY(-110%);
		opacity: .5;
	}
</style>
